<?php

class m130717_121632_create_measurement_channel extends CDbMigration {

	private $_table = 'measurements_channels';
	
	public function safeUp() {
		$columns = array(
			'id'=>'pk',
			'measurementId'=>'integer',
			'channelSequence'=>'integer',
			'value'=>'integer',
			'createdAt'=>'datetime',
			'updatedAt'=>'datetime',
		);
		$this->createTable($this->_table, $columns);
	}

	public function safeDown() {
		$this->dropTable($this->_table);
	}

}